package com.qsd.doc4jsimpple.item;

import com.qsd.doc4jsimpple.style.DocxStyle;
import org.docx4j.wml.P;

import java.util.List;

/**
 * * @Author xujunxia
 * * @Date 2024-11-05 15:08
 * * @Description TODO
 * * wb-0455@dtdream.com
 **/
public class DocxOrderListItem extends DocxItem {

    /**
     * p列表
     */
    private List<P> pList;

    /**
     * 多克斯文本
     */
    private DocxText docxText;

    /**
     * 多克斯形象
     */
    private DocxImage docxImage;


    public DocxOrderListItem(List<P> pList) {
        this.pList = pList;
    }

    public DocxOrderListItem(String text) {
        this.docxText = new DocxText(text);
    }

    public DocxOrderListItem(DocxText docxText) {
        this.docxText = docxText;
    }

    public DocxOrderListItem(DocxImage docxImage) {
        this.docxImage = docxImage;
    }

    public DocxOrderListItem(List<P> pList, DocxStyle style) {
        super(style);
        this.pList = pList;
    }

    public DocxOrderListItem(String text, DocxStyle style) {
        super(style);
        this.docxText = new DocxText(text);
    }

    public DocxOrderListItem(DocxText docxText, DocxStyle style) {
        super(style);
        this.docxText = docxText;
    }

    public DocxOrderListItem(DocxImage docxImage, DocxStyle style) {
        super(style);
        this.docxImage = docxImage;
    }
}

